-
Notifications
You must be signed in to change notification settings - Fork 6
Support project documentation with direct Markdown input #3478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a79784a
to
a465c67
Compare
You can access the deployment of this PR at https://renku-ci-ui-3478.dev.renku.ch |
a465c67
to
2d76097
Compare
5d924b5
to
52e620d
Compare
5dd97f9
to
2aa8034
Compare
2aa8034
to
e5afcce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some small comments below.
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.module.scss
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
aa4c2a6
to
c82a37b
Compare
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.module.scss
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, some comments here which need to be fixed.
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
<div> | ||
<span | ||
className={cx( | ||
isCloseToLimit && "text-danger", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I find this disconcerting, maybe warning color would be more appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the color chosen by the designer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other solution is to not do this closeToLimit
logic and only do red for over the limit. Showing red for an acceptable input is not OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have chosen to do the last one (show red if the word count is greater than the limit).
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/Documentation.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/DocumentationInput.tsx
Outdated
Show resolved
Hide resolved
client/src/features/ProjectPageV2/ProjectPageContent/Documentation/DocumentationInput.tsx
Show resolved
Hide resolved
fc9f12a
to
83a3e9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tearing down the temporary RenkuLab deplyoment for this PR. |
--------- Co-authored-by: olloz26 <olloz@nexus.ethz.ch>
Separate the project documentation support from the ck-editor upgrade in #3390.
Screenshots
UI changes compared to initial version
Display text if there is no documentation
Show edit view in a modal dialog
/deploy